package com.miracle9.game.dao;
import com.miracle9.game.entity.NewRegist;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class NewRegistServiceDao extends SqlOperating<NewRegist, Integer>
{
  public List<NewRegist> getNewRegistsBy(String startDate, String endDate, int userType)
  {
    return q_CreateSqlList("from NewRegist where type = ? and datetime>=? and datetime<? order by id desc", new Object[] {
      Integer.valueOf(userType), startDate, endDate });
  }
  
  public void addNewRegist(NewRegist newRegist)
  {
	  save(newRegist);
  }
}
